package com.nowcoder.community.dao.elasticsearch;

import com.nowcoder.community.entity.DiscussPost;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
/**
 * 继承ElasticsearchRepository声明泛型时要声明1.查询实体类的类型 2.实体类ID字段的类型
 */
public interface DiscussPostRepository extends ElasticsearchRepository<DiscussPost, Integer> {

}
